{{csrf_field()}}

<div class="layui-form-item layui-col-md6">
    <label for="" class="layui-form-label">部门名称</label>
    <div class="layui-input-block">
        <select name="department_id" lay-verify="required" >
            @foreach ( App\Models\UserDepartment::all() as $value)
                <option value="{{ $value->id }}" >{{$value->department_name}}</option>
            @endforeach
        </select>
    </div>
</div>
<div class="layui-form-item layui-col-md6">
    <label for="" class="layui-form-label">职位名称</label>
    <div class="layui-input-block">
        <input type="text" name="position_name"  lay-verify="required" placeholder="请输入职位名称" class="layui-input" >
    </div>
</div>

<div class="layui-form-item layui-col-md6">
    <label for="" class="layui-form-label">职位编号</label>
    <div class="layui-input-block">
        <input type="text" name="number"  lay-verify="required" placeholder="请输入职位编号" class="layui-input" >
    </div>
</div>

<div class="layui-form-item">
    <div class="layui-input-block">
        {{isset($data) ? method_field('PUT') : ''}}
        {{csrf_field()}}
        <button type="submit" class="layui-btn" lay-submit="" lay-filter="layui-form-submit">确 认</button>
        <a  class="layui-btn" href="{{route('position.index')}}" >返 回</a>
    </div>
</div>

